﻿-- :name = emit_trigger
-- :build = EmitTrigger:new()
-- :receive = value
-- :trigger = trigger
-- :fire = fire

EmitTrigger = {}
function EmitTrigger:new()
  o = {}
  o.fire = unconnected
  o.value = unconnected

  function o:trigger()
    self:fire(self:value())
  end

  return o
end